package com.lanhe.game.terraceEarn.service;

import com.lanhe.game.terraceEarn.domain.LanheTerraceEarn;

import java.util.List;

/**
 * 媒体平台单Service接口
 * 
 * @author tianliang
 * @date 2024-03-06
 */
public interface ILanheTerraceEarnService 
{
    /**
     * 查询媒体平台单
     * 
     * @param terraceId 媒体平台单主键
     * @return 媒体平台单
     */
    public LanheTerraceEarn selectLanheTerraceEarnByTerraceId(Long terraceId);

    /**
     * 查询媒体平台单列表
     * 
     * @param lanheTerraceEarn 媒体平台单
     * @return 媒体平台单集合
     */
    public List<LanheTerraceEarn> selectLanheTerraceEarnList(LanheTerraceEarn lanheTerraceEarn);

    /**
     * 新增媒体平台单
     * 
     * @param lanheTerraceEarn 媒体平台单
     * @return 结果
     */
    public int insertLanheTerraceEarn(LanheTerraceEarn lanheTerraceEarn);

    /**
     * 修改媒体平台单
     * 
     * @param lanheTerraceEarn 媒体平台单
     * @return 结果
     */
    public int updateLanheTerraceEarn(LanheTerraceEarn lanheTerraceEarn);

    /**
     * 批量删除媒体平台单
     * 
     * @param terraceIds 需要删除的媒体平台单主键集合
     * @return 结果
     */
    public int deleteLanheTerraceEarnByTerraceIds(Long[] terraceIds);

    /**
     * 删除媒体平台单信息
     * 
     * @param terraceId 媒体平台单主键
     * @return 结果
     */
    public int deleteLanheTerraceEarnByTerraceId(Long terraceId);


    /**
     * 添加每个用户在不同平不同广告的收益
     * @param lanheTerraceEarn
     * @return
     */
    int insertTerraceEarn(LanheTerraceEarn lanheTerraceEarn);
}
